﻿
export default class PathNode
{
    /// <summary>
    /// 从起点走到目前点的消耗
    /// </summary>
    public Gcost: number = 0;
    /// <summary>
    /// 预估的从目前点到终点的消耗
    /// </summary>
    public Hcost: number = 0;
    /// <summary>
    /// 总计消耗
    /// </summary>
    public TotalCost: number = 0;
    /// <summary>
    /// 是否可通过
    /// </summary>
    public Traversable: boolean;
    /// <summary>
    /// 上一个节点，父节点
    /// </summary>
    public LastStepGrid: PathNode;
    /// <summary>
    /// 标记i
    /// </summary>
    public indexI: number;
    /// <summary>
    /// 标记j
    /// </summary>
    public indexJ: number;
}
